<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$Think.lang.web_name}- 操作提示</title>
    <link rel="stylesheet" type="text/css" href="__BT__/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__BT__/css/bootstrap-theme.min.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/style.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/font-awesome.min.css">
    <script type="text/javascript" src="__JS__/jq.min.js"></script>
    <style type="text/css">
        .boxs{
            display: block;
            margin: 2em auto 0 auto;
            width: 400px;
            height: 350px;
            background: #fff;
            border-radius: 5px 5px 5px 5px;
        }
        .boxs>p{
            padding: 1em 0;
            color: #aaa;
        }
        .i-su{
            color: #4cae4c;
        }
        .i-er{
            color: #c12e2a;
        }
        .m-b-md>small{
            display: inline-block;
            margin: 0.5em 0;
            font-size: 16px;
            color: #777;
        }
        body{
            opacity: 1;
        }
    </style>
</head>
<body class="gray-bg">

<div class="tips-box text-center boxs">
    <div class="widget white-bg p-lg text-center">
        <div class="m-b-md">
            <i class="fa fa-5x
            {switch $code}
            {case 0}fa-times text-danger i-er{/case}
            {case 1}fa-check text-navy i-su{/case}
            {/switch}"></i>
            <h1 class="m-xs tip_title
            {switch $code}
            {case 0}text-danger i-er{/case}
            {case 1}text-navy i-su{/case}
            {/switch}">
                {switch $code}
                {case 0}错误{/case}
                {case 1}成功{/case}
                {/switch}</h1>
            <small>{$msg}</small>
            <div class="text-center button">
                <a class="btn btn-success" id="href" href="{$url}">立即跳转</a>
            </div>
        </div>
    </div>
    <p><b id="wait">{$wait}</b>秒后自动跳转</p>
</div>

<script type="text/javascript" src="__BT__/js/bootstrap.min.js"></script>
<script type="text/javascript" src="__JS__/app.js"></script>
<script type="text/javascript" src="__JS__/php.js"></script>

<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>
</html>